IdeaBlade DevForce 2010 Help Reference
GetValue(Object) Method
See Also  Example Send Feedback
IdeaBlade.EntityModel Assembly > IdeaBlade.EntityModel Namespace > NavigationScalarEntityProperty<TInstance,TValue> Class > GetValue Method : GetValue(Object) Method



instance
Retrieves the value of this property in the specified object. Gets or sets the Manager.

Syntax

Visual Basic (Declaration) 
Public Overloads Overrides Function GetValue( _
   ByVal instance As Object _
) As Object
Visual Basic (Usage)Copy Code
Dim instance As NavigationScalarEntityProperty(Of TInstance,TValue)
Dim instance As Object
Dim value As Object
 
value = instance.GetValue(instance)
C# 
public override object GetValue( 
   object instance
)
C++/CLI 
public:
Object^ GetValue( 
   Object^ instance
) override 

Parameters

instance

Example

C#Copy Code
// Sample auto-generated property

#region Manager property

/// Gets or sets the Manager. 
[Bindable(false)]
[Display(AutoGenerateField=false)]
[DataMember]
[IbEm.RelationProperty("FK_Employees_Employees", IbEm.QueryDirection.ToRole2)]
public Employee Manager {
  get { return PropertyMetadata.Manager.GetValue(this); }
  set { PropertyMetadata.Manager.SetValue(this, value); }
}
#endregion Manager property

Remarks

All getter interceptor actions are called when using this method. This method is called from auto-generated properties in the domain model.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2013 All Rights Reserved.